package com.gnerv.sylvanas.business.manage.model.dto;

import com.gnerv.sylvanas.business.manage.model.bo.RoleBO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author Gnerv LiGen
 */
@Data
public class RoleCreateDTO {

    private String name;
    private String description;
    private String status;
    private Integer sort;

    public RoleBO toRoleBO() {
        RoleBO roleBO = new RoleBO();
        BeanUtils.copyProperties(this, roleBO);
        return roleBO;
    }

}